package com.example.pojo.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;


/**
 * @Author: hualao
 * @Version: 0.0.1V
 * @Date: 2019/1/11
 * @Description: 用户登录信息
 **/
@Data
@Document(collection = "user_login_info")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UserLoginInfo implements Serializable {

    private static final long serialVersionUID = -8985545025018238754L;
    private String id;
    private int userId;
    private String username;
    @CreatedDate
    private Date loginDate;
}
